package com.dkh.recommend.mapper;

import com.dkh.recommend.entity.TbPlaylist;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dkh
 * @since 2022-12-14
 */
@Repository
public interface TbPlaylistMapper extends BaseMapper<TbPlaylist> {

//        根据用户id获取最新加入播放队列的音乐id
    public Long getLastPlayListByuserId(Long user_id);

//    根据音乐id删除播放队列
    Boolean deleteByMusicId(Long music_id);
}
